<html>

</html>
<script>
    var name = "lxy Window";
    var Obj = {
        name:"lxy Obj", //公有属性
        GetName:function(){
            return function(){ 
                //内部函数没有调用外部函数的变量，不构成闭包
                return this.name;
            }
        }
    }
    alert(Obj.GetName()()); //lxy Window

    var name = "lxy1 Window"
    //指向当前函数(对象)变量常用方法
    var Obj1 = {
        name:"lxy1 obj",
        GetName:function(){
            //this 指向 Obj1.GetName
            var that = this;
            return function(){
                return that.name;
            }
        }
    }
    //37集
    alert(Obj1.GetName()()); //lxy1 obj
</script>